﻿using System;
using System.Collections.Generic;
using System.Web;

/// <summary>
/// Summary description for TAPremium
/// </summary>
/// 
namespace CE.Provider
{
    public class TAPremium
    {
        public TAPremium()
        {
            //
            // TODO: Add constructor logic here
            //
            ClearFields();
        }

        private Int64 _tapreid;
        private Int64 _tainsid;
        private Int64 _providercompanyId;
        private string _plantype;
        private string _coveragelevel;
        private Int64 _areaid;
        private Int32 _durationstart;
        private Int32 _durationend;
        private Int32 _subsequent;
        private float _price;

        private Int64 _refceuserid;
        private bool _status;

        private float _finfo1; //new rate
        private DateTime _dinfo1; //effectivity date

        public Int64 TAPreId
        {
            get { return _tapreid; }
            set { _tapreid = value; }
        }


        public Int64 TAInsId
        {
            get { return _tainsid; }
            set { _tainsid = value; }
        }

        public Int64 ProviderCompanyId
        {
            get { return _providercompanyId; }
            set { _providercompanyId = value; }
        }

        public string PlanType
        {
            get { return _plantype; }
            set { _plantype = value; }
        }

        public string CoverageLevel
        {
            get { return _coveragelevel; }
            set { _coveragelevel = value; }
        }

        public Int64 AreaId
        {
            get { return _areaid; }
            set { _areaid = value; }
        }

        public Int32 DurationStart
        {
            get { return _durationstart; }
            set { _durationstart = value; }
        }

        public Int32 DurationEnd
        {
            get { return _durationend; }
            set { _durationend = value; }
        }

        public Int32 Subsequent
        {
            get { return _subsequent; }
            set { _subsequent = value; }
        }

        public float Price
        {
            get { return _price; }
            set { _price = value; }
        }

        public Int64 RefCEUserId
        {
            get { return _refceuserid; }
            set { _refceuserid = value; }
        }

        public float FInfo1
        {
            get { return _finfo1; }
            set { _finfo1 = value; }
        }

        public DateTime DInfo1
        {
            get { return _dinfo1; }
            set { _dinfo1 = value; }
        }

        public void ClearFields()
        {
            _tapreid = 0;
            _tainsid = 0;
            _areaid = 0;
            _durationstart = 0;
            _durationend = 0;
            _subsequent = 0;
            _price = 0;

            _finfo1 = 0.0f;
            _dinfo1 = CE.Global.General.GetUTCDateTime();
        }
    }
}